/*********************************************************************
*
*   DigitalInput.h - Digital input class
*
*   Copyright:
*       Software source code by Alex Morozov and Chris D. Locke is
*       licensed under a Creative Commons Attribution-Noncommercial-
*       Share Alike 3.0 United States License
*       (http://creativecommons.org/licenses/by-nc-sa/3.0/us/)
*
*********************************************************************/
#pragma once

#include "CppBot_types.h"

/*----------------------------------------------------------
Digital input class
----------------------------------------------------------*/
class DigitalInput
{
public:
    explicit DigitalInput(UINT32 channel);
    DigitalInput(UINT32 slot, UINT32 channel);
    ~DigitalInput();
    UINT32 Get();
    UINT32 GetChannel();

private:
    void InitDigitalInput( UINT32 slot, UINT32 channel );
    UINT32                  m_channel;
    uint32                  m_slot;
};
